<template>
  <div class="nav">
    <div class="navBox" v-if="$store.state.isShowNav">
      <div @click="showPopup">
        <div class="imgBox">
          <img src="../assets/images/list.png" />
        </div>
      </div>
      <van-popup v-model="show" position="left" :style="{ height: '100%',width: '80%' }">
        <user></user>
      </van-popup>
      <router-link to="/mine">我的</router-link>
      <router-link to="/find">发现</router-link>
      <router-link to="/yuncun">动态</router-link>
      <router-link to="/myvideo">视频</router-link>
      <router-link to="/search">
        <img src="../assets/images/search.png" />
      </router-link>
    </div>
  </div>
</template>

<script>
import user from "../views/user/user.vue";
export default {
  components: { user },
  props: {},
  data() {
    return {
      show: false
    };
  },
  watch: {},
  computed: {},
  methods: {
    showPopup() {
      this.show = true;
    }
  },
  created() {},
  mounted() {}
};
</script>
<style lang="scss" scoped>
@import "~@/assets/css/common.scss";
.nav {
  .navBox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: vw(50);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 vw(10);
    z-index: 100;
    background: #fff;
    .imgBox {
      width: vw(35);
      height: vw(35);
      img {
        width: 100%;
      }
    }
    a {
      font-size: vw(16);
      color: #666;
      img {
        width: vw(35);
        height: vw(35);
      }
    }
    .active-class {
      font-size: vw(18);
      color: #000;
      font-weight: bold;
    }
  }
}
</style>